#pragma once

#include "BallType.h"

class Player
{
private:
	sf::Vector2f position;
	sf::Sprite sprite;
	sf::Sprite ball_sprite;
	sf::Sprite throw_sprite;
	sf::Image throw_image;
	sf::Image image;
	float curr_angle;
	float circle_radius;
	bool held_ball;
	BallType::Type ball_type;
	bool walking;
	float throw_timer;
public:
	Player();
	void load(float circle_radius);
	void step(float x, float y);
	void draw();
	bool fire_ball();
	void give_ball(BallType::Type type);
	sf::Vector2f get_position() { return position; }
	BallType::Type get_ball() { return ball_type; }
};